import http from "@/utils/http"
// 获取详情接口
export const GenerateAPI = () => {
  return http('/member/order/pre')
}


// 创建订单
export const createOrderAPI = (data) => {
  return http({
    url: '/member/order',
    method: 'POST',
    data
  })
}

// 获取-订单详情(以及支付结果)
export const getOrderDetailAPI = (id) => {
  return http({
    url: `/member/order/${id}`
  })
}
